
import 'package:flutter/cupertino.dart';

import '../demo_page.dart';

class RouterName{
  static const String demo = "demo";
}

class Router{
     static GlobalKey<NavigatorState> navigatorkey  = new GlobalKey<NavigatorState>();
     static Route<dynamic> generateRoute(RouteSettings settings){
        switch(settings.name){
          case RouterName.demo:
            return  CupertinoPageRoute(builder: (_){
               return DemoPage();
            });
        }
     }
}